/* let a = Symbol("a");
let b: symbol = Symbol("a");

console.log(a === b);

let obj = {
  name: "Symbol",
  [a]: "jack",
  [b]: function () { 
    console.log("ts");
  }
}

console.log(obj)

for (let key in obj) {
  console.log("---" + key);
}

console.log(Object.keys(obj)) */

// let id1 = Symbol.for("id");

// const user = {
//   [id1]: 123
// }

// console.log(user[id1]);
// console.log(id1);

// let id2 = Symbol.for("id");

// console.log(user[id2])
// console.log(id2);
// console.log(id1 === id2);

let a = Symbol("a");
let b = Symbol("a");

console.log(a === b);

const c = Symbol("a");
const d: unique symbol = Symbol("a");

// a = c;

// console.log(c === d);

